<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div th:switch="${sex}">
        <p th:case="男">男生</p>
        <p th:case="女">女生</p>
        <p th:case="*">未知</p>
    </div>
</body>
</html>